﻿function ArrayExt() {

	contains = function(element) {

		for ( var i = 0; i < this.length; i++) {
			if (this[i] == element) {
				return true;
			}
		}
	};

	this.extiendeArray = function() {
		Array.prototype.contains = contains;
	};
}
new ArrayExt().extiendeArray();